package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LoanLargeAmountPartnerControlService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanLargeAmountPartnerControlSearchRequest;
import com.tuanzi.loan.vo.response.family.LoanLargeAmountPartnerControlSearchResponse;
import org.springframework.data.domain.Page;

public class LoanLargeAmountPartnerControlLazyDataModel
    extends BaseLazyDataModel<LoanLargeAmountPartnerControlSearchRequest,LoanLargeAmountPartnerControlSearchResponse>{

    LoanLargeAmountPartnerControlService service = SpringContextHolder.getBean(LoanLargeAmountPartnerControlService.class);

    public LoanLargeAmountPartnerControlLazyDataModel(LoanLargeAmountPartnerControlSearchRequest loanLargeAmountPartnerControlSearchRequest) {
        super(loanLargeAmountPartnerControlSearchRequest);
    }

    @Override
    protected Page<LoanLargeAmountPartnerControlSearchResponse> doLoad(PageSearcher<LoanLargeAmountPartnerControlSearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
